package com.app.lan;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.Scanner;


public class Receiver<T>{
	
	protected ObjectInputStream stream;
	public Receiver(ObjectInputStream stream){
		this.stream = stream;
	}
	public T receive() throws IOException, ClassNotFoundException{
		T object = ((T)stream.readObject());
                
		return object;
	}
	
	
	
}
